using System;
using System.Runtime.Serialization;

namespace Html
{
	/// <summary>
	/// Exception that is thrown when the same attribute is attempted
	/// to be added multiple times on the same element.
	/// </summary>
	[Serializable]
	public class DuplicateAttributeException : Exception
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="DuplicateAttributeException"/> class.
		/// </summary>
		/// <param name="message">The message.</param>
		/// <param name="args">The args.</param>
		public DuplicateAttributeException(string message, params object[] args) : base(String.Format(message, args)) { }		
	}
}
